package com.godpaper.the5elements.model
{
	public class PlayerModel
	{
		// Singleton instance of PlayerModel
		private static var instance:PlayerModel;
		[Bindable]public var gameTurnStatus:Boolean;
		public const IS_RED_TURN_NOW:Boolean = false//"It's red(computer) turn now!";
		public const IS_BLUE_TURN_NOW:Boolean = true;//"It's blue(blue) turn now!";
		public function PlayerModel(access:Private)
		{
			if (access != null){
				if (instance == null)
				{				
					instance = this;
				}
			}
			else{
				throw new Error( "PlayerModel.SINGLETON_EXCEPTION", "@PlayerModel" );
			}
		}
		
		/**
		 * 
		 * @return the Singleton instance of PlayerModel
		 * 
		 */		
		public static function getInstance():PlayerModel
		{
			if(instance == null)
			{
				instance = new PlayerModel(new Private());
			}
			return instance;
		}
	}
}
/**
 * Inner class which restricts contructor access to Private
 */
class Private 
{
	
}